<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('修改学生课题')"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-teatask-edit" th:object="${sysTaskStu}">
        <input name="id" th:field="*{id}" type="hidden">
        <div class="form-group">
            <label class="col-sm-3 control-label">课题名称：</label>
            <div class="col-sm-8">
                <input class="form-control" name="taskName" th:field="*{taskName}" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">班级：</label>
            <div class="col-sm-8">
                <input class="form-control" name="stuClass" th:field="*{stuClass}" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">姓名：</label>
            <div class="col-sm-8">
                <input class="form-control" name="stuName" th:field="*{stuName}" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">成绩：</label>
            <div class="col-sm-8">
                <input class="form-control" name="score" th:field="*{score}" type="text">
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
    var prefix = ctx + "system/teatask";
    $("#form-teatask-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-teatask-edit').serialize());
        }
    }
</script>
</body>
</html>
